<include file="Public:header" />
			<include file="Public:menu" />
			<div id="right">
				<div class="top"></div>
				<div class="app_right_banner">
					<div class="app_face">
						<img src="__PUBLIC__/Uploads/face/small/{$userInfo['faceimg']}"/>
					</div>
					<div class="app_userinfo">
						<p class="app_module">我的相册</p>
						<p class = "app_module_back"><a href="__APP__/user">返回我的空间</a></p>
					</div>
				</div>
				<div class="app_right_menu">
					<div class="arm_2">
						<a href="__URL__">好友的相册</a>
					</div>
					<div class="arm_2">
						<a href="__APP__/photos/{$userInfo['id']}">我的相册</a>					
					</div>
					<div class="arm_2">
						<a href="__URL__/createalbum">创建相册</a>					
					</div>
					<div class="arm_1">
						上传相片					
					</div>
				</div>
				<div class="app_right_count">
					上传新的图片 | <a href="javascript:history.back();">返回前一页</a>
				</div>
				<div>
					<div class="app_right_left">
						<div class="albumshow">
							<form id="uploadForm" action="__URL__/savephoto" method="POST" enctype="multipart/form-data">
								<p>
									<input type="file" name="photo1"/>
								</p>
								<p>
									<input type="file" name="photo2"/>
								</p>
								<p>
									<input type="file" name="photo3"/>
								</p>
								<p>
									所属相册: 
									<select name="album" class="album">
										<volist name="albumlist" id="album">
											<option value="{$album['id']},{$album['name']},{$album['photonum']},{$album['setting']}"
											<?php if($_GET["albumid"] == $album['id']){echo "selected";} ?>>{$album['name']}</option>
										</volist>
									</select>
								</p>
								<p>
									<label>隐私设置</label>
									<select name="privacy" class="privacy">
										<option value="0">唯自己可见</option>
										<option value="1">仅好友可见</option>
										<option value="2">相同网络及好友可见</option>
										<option value="3">全站用户可见</option>
									</select>
								</p>
								<p>
									<input type="hidden" name="num" value="{.num}"/>
									<input type="submit" class="uploadsubmit input2" value="上传图片"/>
									<?php 
										if(isset($_GET["albumid"])){
									 ?>
									<input type="button" class="input2" value="返回相册" onclick="history.back();"/>
									<?php }else{ ?>
									<input type="button" class="input2" value="返回相册" onclick="location.href=APP+'/photos/{$userInfo:id}'"/>
									<?php } ?>
								</p>
							</form>
						</div>
					</div>
					<div class="app_right_right">
					</div>
				</div>
			</div>
<include file="Public:footer" />